package com.wuhunyu.service;

import com.wuhunyu.commonutils.query.CommonQuery;
import com.wuhunyu.commonutils.result.CommonResult;
import com.wuhunyu.entities.CrmBanner;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 首页banner表 服务类
 * </p>
 *
 * @author wuhunyu
 * @since 2021-01-22
 */
public interface CrmBannerService extends IService<CrmBanner> {

    /**
     * 查询全部轮播图
     * @param commonQuery
     * @return
     */
    public CommonResult selectAllBanners(CommonQuery commonQuery);

    /**
     * 查询全部轮播图
     * @return
     */
    public CommonResult selectAllBanners();

    /**
     * 新增轮播图信息
     * @param crmBanner
     * @return
     */
    public CommonResult addBanner(CrmBanner crmBanner);

    /**
     * 修改轮播图信息
     * @param crmBanner
     * @return
     */
    public CommonResult updateBanner(CrmBanner crmBanner);

    /**
     * 删除轮播图信息
     * @param id
     * @return
     */
    public CommonResult deleteBanner(String id);

}
